/**
 * @projectName study_java
 * @package Factory.method
 * @className Factory.method.CatFactory
 */
package Factory.method;

import Factory.Cat;
import Factory.IAnimal;

/**
 * CatFactory
 * @description 具体的猫工厂
 * @author answer_wx
 * @date 2022/6/29 16:18
 * @version 1.0
 */
public class CatFactory implements AnimalFactory {
    @Override
    public IAnimal createAnimal() {
        System.out.println("工厂方法创建一只猫");
        return new Cat();
    }
}